package com.xiaoshuidi.cloud.module.rooms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomArea;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 小区信息 Mapper 接口
 * </p>
 *
 * @author Feng
 * @since 2023-05-06
 */
public interface RoomAreaMapper extends BaseMapperX<RoomArea> {

    @Select("select distinct(${column}) from room_area where ${ew.sqlSegment}")
    List<String> distinct(@Param("ew") LambdaQueryWrapper<?> wrapper, @Param("column") String column);
}
